<template>
  <v-card>
    <v-layout>
      <v-navigation-drawer
          theme="dark"
          permanent
      >
        <v-list nav>
          <v-list-item prepend-icon="mdi-download-box" title="发布" @click="toRoute('/publish')"></v-list-item>
          <v-list-item prepend-icon="mdi-video-box" title="系统配置" @click="toRoute('/systemSetting')"></v-list-item>
        </v-list>
      </v-navigation-drawer>
      <v-main width="100%" min-height="100vh">
        <router-view/>
      </v-main>
    </v-layout>
  </v-card>
</template>

<script setup>
import {onMounted} from "vue";
import {useRouter} from "vue-router";
const router = useRouter();

onMounted(() => {
});

const toRoute = (path) => {
  router.push(path);
}

</script>

<style scoped>
</style>
